<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript">
 	function sub() {
 		$.post("login", $("#form").serialize(),function(data) {
			console.log(data);
		},"json")
 	}
	function sub1() {
 		$.post("songselect", $("#form1").serialize(),function(data) {
			console.log(data);
		},"json")
 	}
	function sub2() {
 		$.post("selectLike", function(data) {
			console.log(data);
		},"json")
 	}
	function sub3() {
 		$.post("insertLike", $("#form3").serialize(),function(data) {
			console.log(data);
		},"json")
 	}
	function sub4() {
 		$.post("deleteLike", $("#form4").serialize(),function(data) {
			console.log(data);
			
		},"json")
 	}
	
</script>

<body>
登录
	<form id="form">
		<input type="text" name="u_account"/>
		<input type="password" name="u_password"/>
		<input type="button"  value="提交" onclick="sub() ">
	</form>
搜索歌曲
	<form id="form1">
		<input type="text" name="s_name"/>
		<input type="button"  value="搜索" onclick="sub1() ">
	</form>
登录成功后用户喜欢的歌曲	
	<input type="button"  value="喜欢的歌" onclick="sub2() "><br>
添加用户喜欢的歌曲
	<form id="form3">
		<input type="text" name="s_name"/>
		<input type="button"  value="录入" onclick="sub3() ">
	</form>
删除用户喜欢的歌曲
	<form id="form4">
		<input type="text" name="s_name"/>
		<input type="button"  value="删除" onclick="sub4() ">
		<a href="logon2.html">注册</a>
	</form>
</body>

</html>